package com.yc.fav.controller;

import com.yc.fav.entity.Fav;
import com.yc.fav.mapper.FavMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LiaoYan
 * @since 2025-08-16
 */
@RestController
@RequestMapping("//fav")
public class FavController {

    @Autowired
    private FavMapper favMapper;

    @RequestMapping("query")
    public List<Fav> query(){
        return favMapper.selectList(null);
    }

}
